package 测试;

import java.util.ArrayList;
import java.util.List;

public class Main {
    public static void main(String[] args) {
        List<Object> mixedList = new ArrayList();
        mixedList.add("Hello");
        mixedList.add(1);
        mixedList.add(3.14);

        for (Object obj : mixedList) {
            System.out.print(obj + " ");
        }
    }
}
